package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@TableName("zdd_system_role")
public class SystemRole extends Model<SystemRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增长编号
     */
    @TableId(value = "roleid", type = IdType.AUTO)
    private int roleid;

    /**
     * 角色名
     * @return
     */
    private String rolename;

    @Override
    protected Serializable pkVal() {
        return roleid;
    }
}
